﻿namespace Test
{
    using System;
    using AllocineClient;
    using MoviesDataBase;

    /// <summary>
    /// The program starter class.
    /// </summary>
    public class Program
    {
        /// <summary>
        /// Mains the specified args.
        /// </summary>
        /// <param name="args">The args.</param>
        public static void Main(string[] args)
        {
            try
            {
                AllocineParser parser = new AllocineParser(new Movie() { Title = "Un hiver à Central Park" });
                parser.DownloadMovieInformationAsync();
                parser.DownloadEnded += (s, e) =>
                {
                    Console.WriteLine(e.ToString());
                };
            }
            catch
            {
                throw;
            }

            Console.ReadLine();
        }
    }
}
